package com.yzc.mihuyou.controller;


import com.yzc.mihuyou.service.ComimgService;
import com.yzc.mihuyou.service.ComtyService;
import com.yzc.mihuyou.vo.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yzc
 * @since 2022-05-05
 */
@RestController
@RequestMapping("/mihuyou/comimg")
public class ComimgController {
    @Autowired
    ComimgService comimgService;

    @Autowired
    ComtyService comtyService;

    @GetMapping("cunImg")
    public JsonResult cunImg(){
        Map<String,Object> map =new HashMap<>();
        map.put("comIse",comimgService.comLic());
        return new JsonResult(200,"成功",map);
    }
}
